package com.xca.znb.model.impl;

import android.content.Context;

import com.xca.znb.database.UserDAO;
import com.xca.znb.model.imodel.ISchoolEssay;

public class SchoolEssayImpl implements ISchoolEssay {
    private  UserDAO userDAO ;
    public SchoolEssayImpl(Context context){userDAO = new UserDAO(context);}

    @Override
    public boolean addNews(String news_type , String first_title ,
                           String second_title , String imgPath , String inputText ,
                           String publisher , String time) {
        return  userDAO.addNews(news_type , first_title , second_title , imgPath , inputText , publisher ,time);
    }
}
